/**
 * This file is part of JNotifyOSD.
 *
 * JNotifyOSD is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * JNotifyOSD is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with JNotifyOSD. If not, see <http://www.gnu.org/licenses/>.
 */

#include "stdafx.h"

/*
 * Loads an image file and converts it to a HICON
 * Call FreeIcoLoaderMemory() when you don't need the library anymore.
 * @param in	path		Path of the image file
 * @param out	outIco		Newly created icon handle. Must be freed with DestroyIcon() after use.
 * @param
 */
int IconFromImageFile(const char* path, HICON* outIco);

/*
 * Loads an image file and converts it to a HICON
 * Call FreeIcoLoaderMemory() when you don't need the library anymore.
 * @param in	path		Path of the image file
 * @param out	outIco		Newly created icon handle. Must be freed with DestroyIcon() after use.
 * @param
 */
int IconFromImageFile(const WCHAR* path, HICON* outIco);

/*
 * Releases the resources used by the library.
 * The library is lazily initialized
 * each time IconFromImageFile is called, if needed.
 */
void FreeIcoLoaderMemory();